<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean class="Bean.User" scope="session" id="worker"></jsp:useBean>
<%String ruolo= worker.getWork();%>
<%String utente= worker.getName()+" "+worker.getSurname();%>
<%String birthDate= worker.getBirthDate();%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
        <meta http-equiv="Content-Style-Type" content="text/css" />
        <title>Home <%= utente %></title>
        <style type="text/css" >
            <%@ include file="/jsp/default.css"  %>
        </style>
    </head>


    <body>
        <div id="wrapper">
            <div id="header">
                <div id="logo">
                    <h1><a href="#">baronerosso.it</a></h1>
                </div>
                <!-- end div#logo -->
            </div>
            <!-- end div#header -->
            <div id="menu">
                <ul>
                    <li class="active"><a href="/Jvinery/index.jsp">Home</a></li>
                    <li><a href="/Jvinery/jsp/Group.jsp">Gruppo</a></li>
                    <li><a href="/Jvinery/jsp/Contact.jsp">contatti</a></li>

                </ul>
            </div>
            <!-- end div#menu -->
            <div id="page">
                <div id="page-bgtop">
                    <div id="content">
                        <div class="post">
                            
                            Welcome<br />
                            <%= utente%> <br />
                            nato il: <%= birthDate %> <br />
                            
                            <%if(ruolo.equalsIgnoreCase("Agronomous")){%>
                            <img src="/Jvinery/images/agronomo.jpg" alt="agronomo" width="397" height="279" />
                            <%}else if(ruolo.equalsIgnoreCase("Oenologist")){%>
                            <img src="/Jvinery/images/enologo.jpg" width="397" height="370" />
                            <%}else if(ruolo.equalsIgnoreCase("Seller")){%>
                            <img src="/Jvinery/images/cantina.jpg" width="397" height="382" />
                            <%}else if(ruolo.equalsIgnoreCase("Warehouseman")){%>
                            <img src="/Jvinery/images/magazziniere.jpg" width="207" height="286" />
                            <%}%>


                        </div>



                    </div>
                        <!-- end div#content -->
                        <div id="sidebar">

                            <strong>Benvenuto <%= utente %> </strong>  <br />
                            <ul>
                                <li>
                                    <h2 class="categories">Menu Principale</h2>

                                    <%if(ruolo.equalsIgnoreCase("Agronomous"))
{ %>
                                    <li><a href="/Jvinery/jsp/monitoringParameterVineyard.jsp">Monitoring Parameter Vineyard</a></li><hr />
                                    <li><a href="/Jvinery/jsp/VineyardEvents.jsp">Vineyard Events</a></li><hr />
                                    <li><a href="/Jvinery/jsp/FruitRecived.jsp">Fruit Recived</a></li><hr />
                                    <li><a href="/Jvinery/jsp/AddVineyard.jsp">Add Vineyard</a></li><hr />
                                    <li><a href="/Jvinery/jsp/AddHarvest.jsp">Add Harvest</a></li><hr />

                                    <%}else if(ruolo.equalsIgnoreCase("Oenologist"))
{%>
                                    <li><a href="/Jvinery/jsp/CellarMonitoring.jsp">Cellar Monitoring</a></li><hr />
                                    <li><a href="/Jvinery/jsp/Winerecived.jsp">Wine Recieved</a></li><hr />
                                    <li><a href="/QuerySelect.jsp">Harvest</a></li><hr />
                                    <li><a href="/AddCellar.jsp">Add Cellar</a></li><hr />

                                    <%}else if(ruolo.equalsIgnoreCase("Seller"))
{%>
                                    <li><a href="/Jvinery/jsp/QuerySelect.jsp">Sales Monitoring</a></li><hr />
                                    <li><a href="/Jvinery/jsp/Warehouse.jsp">Warehouse Monitoring</a></li><hr />
                                    <li><a href="/Jvinery/jsp/AddjobOrder.jsp">Add job Order</a></li><hr />

                                    <%}else if(ruolo.equalsIgnoreCase("Warehouseman"))
{%>
                                    <li><a href="/Jvinery/jsp/Warehouse.jsp">Warehouse Monitoring</a></li><hr />
                                    <li><a href="/Jvinery/jsp/AddjobOrder.jsp">Add job Order</a></li><hr />
                                    <%}%>

                                </li>
                            </ul>

                        </div>
                        <!-- end div#sidebar -->
                        <div style="clear: both; height: 1px"></div>
                    </div>
                

            </div>
            <!-- end div#page -->
            <div id="footer">
                <p>Copyright Barone rosso<br />Designed by Barone Rosso Group</p>
            </div>
            <!-- end div#footer -->
        </div>
        <!-- end div#wrapper -->
    </body>
</html>

